home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Franz PD / Franz PD Disk #002 (19xx)(Amiga User Group Deutschland e.V.).zip / Franz PD Disk #002 (19xx)(Amiga User Group Deutschland e.V.).adf / HP-10C / hp-10c.doc < prev    next >
Text File  |  1988-02-24  |  3KB  |  88 lines

  1.  
  2.                  HP-10C
  3.                  -- ---
  4.  
  5.       This program was written by Duncan Prindle using TDI Modula-2 and
  6.    is freely distributable, as long as this notice is distributed with it.
  7.  
  8.       My BITNET address is:   DUNCAN@SLACVM
  9.  
  10.       This is my first program for the Amiga, and my first in Modula-2;
  11.    suggestions would be appreciated. The only known `bug' is that it
  12.    seems that not all memory is returned when the program is closed. I don't
  13.    know why. If you compare with an actual HP-10C you will notice that
  14.    many functions are not in this version, and the keys that are similar
  15.    are arranged differently. Also the C (in HP-10C) is not correct,
  16.    the program does not remember its state from the last time it was closed.
  17.  
  18.  
  19.                  ERROR MESSAGES
  20.                  ----- --------
  21.  
  22.       Illegal operations will result in an error message. Hitting CLX
  23.    (for Clear X) will get rid of this message, but also erase X, which
  24.    may not be desirable. A simple way to get rid of the error message,
  25.    and not clear X, is to push the right mouse button (make a null menu
  26.    selection).
  27.  
  28.  
  29.                  THE FUNCTIONS
  30.                  --- ---------
  31.  
  32.       Hopefully it won't be too hard to guess what the buttons mean.
  33.    The RAD key toggles to DEG, allowing trigonometric calculations in
  34.    either radians or degrees. The GLD key (meaning GOLD) is also a toggle,
  35.    selecting alternate functions for a number of keys. Some of the keys
  36.    that may not be obvious are:
  37.       sqr   means Squre root
  38.       lsX         last X
  39.       CLS         Clear Stack
  40.       X-Y         Switch X and Y
  41.     (any others?)
  42.  
  43.     Note that there are 10 storage locations recognized by STO and RCL.
  44.     Select STO (or RCL) and then 0 through 9.
  45.  
  46.       I have not implemented the Enter Exponent key (EEX) yet. In fact
  47.     I may never implement it. You can fake it using 10 to the X.
  48.  
  49.       Someday I will learn how to create images, and then the square root
  50.     key will be obvious.
  51.  
  52.  
  53.  
  54.                  THE MATH
  55.                  --- ----
  56.  
  57.       All calculations are done with real numbers. This means an 8-bit
  58.    exponent and 24-bit mantissa. BINARY, OCTAL and HEX displays
  59.    convert the real number to a 24 bit integer for display purposes only;
  60.    the math is still done with real numbers.
  61.    The display is not big enough to display all 24 bits in BINARY. The
  62.    display will be truncated and no error message will be displayed.
  63.  
  64.      If X will not fit into a 24-bit integer the BINARY, OCTAL and HEX
  65.    display options will print `24-BIT OVERFLOW'. Pushing the right mouse
  66.    button will not clear this error message as the value of X is still
  67.    too big for 24 bits. The number can be displayed in DECIMAL or
  68.    Scientific displays.
  69.  
  70.  
  71.  
  72.       Any other interesting pieces of information ?
  73.  
  74.  
  75. Note from the poster:
  76. ====================
  77.  
  78.     In order to ARC this program I had to rename the files.
  79. To recover the original filenames, prefix the .MOD and .DEF files by
  80. 'Calc', and change the extensions '.DF' and '.MD' of 'functions' to 
  81. '.DEF' and '.MOD'.
  82.     I have no familiarity with Modula-2, so I can't tell you how to
  83. compile and link it. I have played with the executable, and it works. It
  84. seems to me a nice example of an Amiga program in Modula-2.
  85.  
  86.     Enjoy,
  87.         Willy.
  88.